//
//  HRUseGoodsTableSectionHead.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-12.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRUserGoodsTableSectionHead.h"

@implementation HRUserGoodsTableSectionHead

- (id)init
{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HRUserGoodsTableSectionHead"
                                          owner:self
                                        options:nil] objectAtIndex:0];
    _lblType.hidden = YES;
    return self;
}

-(id)initWithType:(NSInteger)type{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HRUserGoodsTableSectionHead"
                                          owner:self
                                        options:nil] objectAtIndex:0];
    switch (type) {
        case ORDER_TYPE_WAIT_FOR_PAY:
            _lblType.text = @"待付款";
            break;
        case ORDER_TYPE_WAIT_FOR_DELIVERY:
            _lblType.text = @"待发货";
            break;
        case ORDER_TYPE_WAIT_FOR_RECEIPT:
            _lblType.text = @"待收货";
            break;
        case ORDER_TYPE_REFUNDING:
            _lblType.text = @"退款中";
            break;
        default:
            _lblType.text=@"";
            break;
   }
    
    
    return self;
}

@end
